﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BasicParts;

namespace ParallaxMachine
{
    public class Layer
    {
        public Image[,] backgrounds;
        public Vector2 speed;
        public int index;
        public Point size;

        public Layer(Image[,] backgrounds, Vector2 speed, int index)
        {
            this.backgrounds = backgrounds;
            this.speed = speed;
            this.index = index;
            for (int x = 0; x < backgrounds.GetLength(0); x++)
                size.X += backgrounds[x, 0].Size.X;
            for (int y = 0; y < backgrounds.GetLength(1); y++)
                size.Y += backgrounds[0, y].Size.Y;
        }
    }
}
